//
//  SPLiveDetailRoomHeaderFooterView.m
//  panzer
//
//  Created by 还带大道 on 2018/10/24.
//  Copyright © 2018年 还带大道. All rights reserved.
//

#import "SPLiveDetailRoomHeaderFooterView.h"
#import "SPCommon.h"
#import "SPLiveDetailModel.h"

@interface SPLiveDetailRoomHeaderFooterView()

@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UILabel *count_join;
@property (weak, nonatomic) IBOutlet UILabel *count_guide;
@property (weak, nonatomic) IBOutlet UILabel *count_like;

@end

@implementation SPLiveDetailRoomHeaderFooterView

- (void)awakeFromNib
{
    [super awakeFromNib];
    _bgView.backgroundColor = [UIColor whiteColor];
    
    _bgView.layer.shadowColor = RZ_COLOR_ALPHA(201, 201, 201, 0.37).CGColor;
    _bgView.layer.cornerRadius = 6;
    _bgView.layer.shadowOffset = CGSizeMake(0,1);//shadowOffset阴影偏移,x向右偏移，y向下偏移，默认(0, -3)
    _bgView.layer.shadowOpacity = 1;//阴影透明度，默认0
    _bgView.layer.shadowRadius = 4;//阴影半径，默认3
}


+ (instancetype)shareHeaderView
{
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].lastObject;
}


- (void)setModel:(SPLiveDetailModel *)model
{
    _model = model;
    _count_join.text = [NSString stringWithFormat:@"%ld",model.total_man_entry];
}
@end
